<template>
  <div>
    salary
    <div>
      <el-checkbox v-model="falg">测试</el-checkbox>
    </div>
  </div>
</template>
<script>
export default {
  name: 'Salary',
  data() {
    return {
      falg: false
    }
  },
  created() {
    console.log('creatd')
  },
  activated() {
    // 激活 --- 未激活的 两个状态进行切换
    console.log('缓存组件才会有的生命周期钩子函数')
  }
}
</script>
